#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "SERVER/myserver.h"
#include "SOCKET/mysocket.h"
#include "THREAD/mythread.h"

using namespace std;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MyServer;
class Mysocket;
class MainWindow : public QMainWindow
{
    Q_OBJECT
    //
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
signals:
private slots:
    void onSetCondition();
    void on_pushButton_connect_clicked();

private:
    Ui::MainWindow *ui;
    friend class MyServer;
    MyServer *server;
    Mysocket *t_socket;
public slots:
    void onShowMsg(char *data);
};

#endif // MAINWINDOW_H
